package com.sxjh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@ApiModel(value = "综合统计/用于饼状图")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ComprehensiveReport {

    @ApiModelProperty(value = "物料名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "车辆总数")
    @TableField("vehicleNum")
    private BigDecimal vehicleNum;

    @ApiModelProperty(value = "出厂车辆数量")
    @TableField("vehicleOut")
    private BigDecimal vehicleOut;

    @ApiModelProperty(value = "未厂车辆数量")
    @TableField("vehicleNotOut")
    private BigDecimal vehicleNotOut;

    @ApiModelProperty(value = "预计出厂吨数")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "实际出厂吨数")
    @TableField("execute_num")
    private BigDecimal executeNum;

    @ApiModelProperty(value = "车辆总数量")
    private int vehiclesTotalNum;

    @ApiModelProperty(value = "车辆超时数量")
    private int vehiclesOvertimeNum;

    @ApiModelProperty(value = "车辆重新入厂数量")
    private int vehiclesAgainEnterNum;

    @ApiModelProperty(value = "车辆重新出厂数量")
    private int vehiclesAgainOutNum;

    @ApiModelProperty(value = "车辆在厂数量")
    private int vehiclesInNum;

    @ApiModelProperty(value = "车辆出厂数量")
    private int vehiclesOutNum;

    @ApiModelProperty(value = "制卡超时未入厂数量")
    private int buildCardOutTimeNum;

    @ApiModelProperty(value = "叫号超时数量")
    private int callTimeoutNum;



    public BigDecimal getVehicleNum() {
        if ("".equals(vehicleNum) || vehicleNum == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return vehicleNum;
    }

    public BigDecimal getVehicleOut() {
        if ("".equals(vehicleOut) || vehicleOut == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return vehicleOut;
    }

    public BigDecimal getVehicleNotOut() {
        if ("".equals(vehicleNotOut) || vehicleNotOut == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return vehicleNotOut;
    }

    public BigDecimal getQuantity() {
        if ("".equals(quantity) || quantity == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return quantity;
    }

    public BigDecimal getExecuteNum() {
        if ("".equals(executeNum) || executeNum == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return executeNum;
    }
}
